package com.wywah.yunduo.orm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wywah.yunduo.orm.bean.UserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 内部员工表 Mapper 接口
 * </p>
 *
 * @author wywah
 * @since 2024-10-27
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("select * from sys_user_info where nickname = #{username} ")
    List<UserInfo> findUserByName(String username);

    @Select("select * from sys_user_info where yhbh = #{yhid} ")
    List<UserInfo> findUserByYhid(String yhid);
}
